package ch.usi.inf.pf2.node;

import ch.usi.inf.pf2.Constant;
import ch.usi.inf.pf2.Subtraction;
import junit.framework.TestCase;
/**
 * A SubtractionTest ,it tests if Subtraction class works or not.
 * 
 * @author Elham.menzer@gmail.com
 */
public class SubtractionTest extends TestCase {
	

		
		public void testEvaluate(){
			Subtraction sub1= new Subtraction(new Constant(2), new Constant(3));
			sub1.evaluate();
			assertEquals(-1.0,sub1.evaluate());
			
		}

	}


